package org.guegan.util.dircompare.main;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Session;

public class CleanPresenceFlag extends MainModule {
	private static Log log = LogFactory.getLog(CleanPresenceFlag.class);
	
	public CleanPresenceFlag() {
	}
	
	public void doExecute() {
		report("cleaning presence flag", log);
		Session session = getSession();
		session.createSQLQuery("update FileBean set present = 0").executeUpdate();
		session.createSQLQuery("update DirBean set present = 0").executeUpdate();
		//closeSession();
	}

}
